home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
rbbs_pc
/
dragblok.zip
/
ADDONS.BAS
next >
Wrap
BASIC Source File
|
1991-08-22
|
6KB
|
89 lines
' $linesize:132
' $title: 'ADDONS.BAS 17.3C, Copyright 1991 by Glenn Rossi, Dragon Systems'
' Copyright 1991 by Copyright 1991 by Glenn Rossi, Dragon Systems
' all rights reserved.
' Name ...............: ADDONS.BAS
' First Released .....: August 21 1991
' Copyright ..........: 1991
' Purpose.............: Various Support Routines for The Dragon Merges
' to RBBS 17.3a/b/c
' Subprograms that require error trapping are incorporated
' within ADDONS.BAS as separately callable subroutines
' in order to free up as much code as possible within
' the 64K code segment used by RBBS-PC.BAS.
'===========================================================================
'
' ADDONS.BAS.... Add ADDONS+ into your Link list.... compile ADDONS.BAS to
' ADDONS.OBJ using this command line:
'
'
' BC ADDONS.BAS,ADDONS,NUL,/X/O/MBF/AH;
'
'
'
'===========================================================================
'
'
' $INCLUDE: 'RBBS-VAR.BAS'
'
'
'
SUB CheckForBannedUser(ZBlocked) STATIC 'DRG092191
'DRG092191
DIM User AS STRING * 30 'DRG092191
'DRG092191
IF ZEmphasizeOn$ <> "" THEN 'DRG092191
fg1$ = zESCAPE$ + "[1;31;40m" 'DRG092191
fg2$ = zESCAPE$ + "[1;32;40m" 'DRG092191
fg3$ = zESCAPE$ + "[1;33;40m" 'DRG092191
fg4$ = zESCAPE$ + "[1;34;40m" 'DRG092191
ELSE 'DRG092191
fg1$ = "" 'DRG092191
fg2$ = "" 'DRG092191
fg3$ = "" 'DRG092191
fg4$ = "" 'DRG092191
END IF 'DRG092191
'DRG092191
X$ = ZWasZ$ + ".BAN" 'DRG092191
CALL FindIt (X$) 'DRG092191
IF NOT ZOK THEN _ 'DRG092191
EXIT SUB 'DRG092191
'DRG092191
Banned = FREEFILE 'DRG092191
'DRG092191
IF ZSharit THEN 'DRG092191
OPEN X$ FOR INPUT SHARED AS #Banned 'DRG092191
ELSE 'DRG092191
OPEN X$ FOR INPUT AS #Banned 'DRG092191
END IF 'DRG092191
'DRG092191
WHILE NOT EOF(Banned) 'DRG092191
INPUT #Banned, User 'DRG092191
'DRG092191
IF LTRIM$(RTRIM$(UCASE$(User))) = LTRIM$(RTRIM$(ZActiveUserName$)) THEN 'DRG092191
CALL SkipLine(4) 'DRG092191
CALL QuickTPut (fg4$ + "W A R N I N G !" + ZCrLf$ + _ 'DRG092191
fg3$ + "---------------",2) 'DRG092191
CALL QuickTPut (fg2$ + "You have been " + fg3$ + "banned" + _ 'DRG092191
fg2$ + " from this conference!",2) 'DRG092191
CALL QuickTPut (fg1$ + "Contact the SysOp for information on",1 ) 'DRG092191
CALL QuickTPut (fg1$ + "why this is the case and for instruct-",1 ) 'DRG092191
CALL QuickTPut (fg1$ + "ions on how and when you can rejoin..." + _ 'DRG092191
ZColorReset$,2) 'DRG092191
'DRG092191
ZBlocked = 1 'DRG092191
CLOSE #Banned 'DRG092191
'DRG092191
CALL DelayTime(10) 'DRG092191
'DRG092191
EXIT SUB 'DRG092191
END IF 'DRG092191
WEND 'DRG092191
ZBlocked = 0 'DRG092191
CLOSE #Banned 'DRG092191
END SUB 'DRG092191
'
'
' More merges coming soon!!!!